package com.syg.boot.core.web.data;

import io.swagger.annotations.ApiModelProperty;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.Serializable;

/**
 * @author qg
 * @version 1.0
 */
public class DataResponse<T> implements Serializable {

    private static final long serialVersionUID = -8840487544366016106L;

    private static final Logger log = LoggerFactory.getLogger(DataResponse.class);
    public static final String SUCCESS = "0000000";
    private static final String SUCCESS_MSG = "操作成功";
    public static final String ERROR = "0000001";
    private static final String ERROR_MSG = "操作失败";
    private static final String PARAM_PRE = "{";
    private static final String PARAM_SUF = "}";
    @ApiModelProperty("返回码")
    private String code;
    @ApiModelProperty("返回消息")
    private String message;
    @ApiModelProperty("返回业务对象")
    private T data;
    @ApiModelProperty("分页信息")
    private Page pagination;

    public DataResponse() {
    }
}
